# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-array-compare
pkgver=3.0.8
pkgrel=3
pkgdesc="Class to compare two arrays"
arch=(any)
url="https://search.cpan.org/dist/Array-Compare"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/D/DA/DAVECROSS/Array-Compare-v$pkgver.tar.gz)
sha512sums=('648dbf2a65d94c3bfaab34ec765d0ad7e86f5c0b704078278f43a28a668cb70606a039cceab96f31af439f661c2c6538571b142ec938738f3cb94438b40e2838')

build() {
  cd  "$srcdir"/Array-Compare-v$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Array-Compare-v$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
